package com.tuo51.manager.vo;

import com.tuo51.childcare.domain.dailyrecord.DailyGrowRecordTemplate;
import com.tuo51.childcare.domain.vo.DailyGrowRecordOptionVO;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.util.Date;
import java.util.List;


@Data
public class DailyObserverTemplateVO {
    boolean deleted;
    String id;
    Date created;

    private Integer dailyIndex = 0;

    private Integer monthMax = 0;

    private Integer monthMin = 0;

    private String title;

    private String icon;

    private String unit;

    private Integer valueType = 0;

    private List<DailyGrowRecordOptionVO> options;

    private Boolean repeatable = false;

    private String comment;


    public static DailyObserverTemplateVO of(DailyGrowRecordTemplate obj){
        DailyObserverTemplateVO ret = new DailyObserverTemplateVO();

        CopyUtils.copyProperties(obj, ret);

        return ret;
    }
}
